<html>
<head>
	<script type="text/javascript" src="date.js"></script>
	<script type="text/javascript">
	x = 1;
	function func(){
	y = 2;
	document.write(x);
	}
	function func2(){
	document.write(x);
	}
	</script>
</head>
<body>

<h1>My First Web Page</h1>

<p>Time:</p>
<p id="demo"><button type="button" onclick="func()">Display Date</button></p>
<p id="demo">fdgfd</p>

<script type="text/javascript">
func2();
</script>
</body>
</html>
